package com.gnerv.cms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gnerv.cms.dto.SiteDTO;
import com.gnerv.cms.dto.SiteSaveDTO;
import com.gnerv.cms.dto.SiteSearchDTO;
import com.gnerv.cms.entity.Site;

import java.util.List;

/**
 * <p>
 * 基础平台-站点配置表 服务类
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
public interface ISiteService extends IService<Site> {

    boolean saveSite(SiteSaveDTO siteSaveDTO);

    boolean createSite(SiteSaveDTO siteSaveDTO);

    boolean deleteSite(String siteId);

    boolean updateSite(SiteSaveDTO siteSaveDTO);

    boolean updateSiteStatus(String siteId, Integer status);

    SiteDTO selectSite(String siteId);

    SiteDTO selectSite(SiteSearchDTO siteSearchDTO);

    List<SiteDTO> listSite(SiteSearchDTO siteSearchDTO);
}
